package com.travel.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 图片表
 * @TableName images
 */
@TableName(value ="images")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Images implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 外键id
     */
    @TableField(value = "Foreign_id")
    private String foreign_id;

    /**
     * 图片名
     */
    @TableField(value = "image")
    private String image;

}